package cn.lzd.mvp.base.net.log;

import android.text.TextUtils;
import android.util.Log;

public class LogUtils {
    private static boolean LOG_ENABLE = true;

    public static void setLogEnable(boolean logEnable) {
        LOG_ENABLE = logEnable;
    }

    public static void debugInfo(String tag, String msg) {
        if (!LOG_ENABLE || TextUtils.isEmpty(msg)) {
            return;
        }
        Log.d(tag, msg);
    }
}
